package com.whenjun.task;

import com.whenjun.common.LoggerParent;
import com.whenjun.service.core.DoorService;
import com.whenjun.service.impl.IscCameraServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class CameraPerson extends LoggerParent {

    @Autowired
    private IscCameraServiceImpl iscCameraService;

    // 每 30 分钟执行一次
    @Scheduled(cron = "0 0/30 * * * ?")
    public void syncCamera(){
        iscCameraService.syncCamera();
    }
}
